Method of allocating bandwidth on request to the stations of a local area network

ABSTRACT

A method of bandwidth management enabling to insure a guaranteed bandwidth to each station of transmission network comprising a plurality of stations ( 10, 12, 14 ) forming a logical ring wherein a token frame is circulating from station to station, each station being allowed to transmit a credit (c) of data bytes upon reception of the token frame wherein the credit is increased in proportion to a variable TRTT standing for Token Round Trip Time which is the time taken for the token frame to circulate around the logical ring since the preceding reception of the token frame by the station. The credit is increased in proportion of a variable CIR standing for Committed Information Rate which is the guaranteed transmission rate that the station can use to transmit data wherein the value of CIR is determined by a class of bandwidth which has been previously selected by the station upon the preceding reception of the token frame by the station.

TECHNICAL FIELD

[0001] The present invention relates to the bandwidth management between the stations in a data transmission network of the Ethernet type and relates particularly to a method of allocating bandwidth on request to the stations of a Local Area Network such as Ethernet network.

BACKGROUND

[0002] On local Area Networks (LANs) of the Ethernet type able to transmit the data at speeds higher than one gigabit/s, an unlimited number of stations can be connected to a shared medium. To control the exchange of data between the stations connected on the shared medium, Ethernet uses a protocol called Carrier Sense, Multiple Access Collision Detect (CSMA/CD). The “Multiple Access” part means that every station is indeed connected to the shared medium forming a single data path. The “Carrier Sense” part means that before transmitting data, a station checks it to see if any other station is already sending something. If the transmission medium appears to be idle then, the station can actually begin to send data. However, two stations can start transmitting at the same time, causing a collision. When this occurs, each interfering station is made able to detect it. Hence, all stations attempt to transmit, back off, and try a retransmission at randomly selected later times thus minimizing the chance of another collision.

[0003] Although Ethernet does not set an upper limit to the number of stations that can be connected on a same transmission medium there are, in practice, drastic limitations. Generally speaking, as more users are added to a shared network or, as applications requiring more data are added, performance inevitably deteriorates. This is because all users become competitors in trying to use a common resource: the shared transmission medium. It is generally agreed that, on a moderately loaded 10 Mbps Ethernet network, being shared by 30-50 users, the network can only sustain throughput in the neighborhood of 2.5 Mbps after accounting for packet overhead, inter packet gaps and collisions resulting of the use of the here above CSMA/CD protocol. Thus, yet simple, CSMA/CD protocol, suffers drastic limitations in its ability to take advantage of the intrinsic performance of the shared transmission medium i.e., 10 Mbps in this example. Further increasing the number of users (and therefore packet transmissions) creates an even higher collision potential. Since collisions occur when two or more stations attempt to send information at the same time, when these stations realize that a collision has occurred, they must, to obey standard, all shut off for a random time before attempting another transmission. This tends to add a considerable overhead, severely impacting performance, until the mechanism just collapses when medium is attempted to be too much utilized.

[0004] One well-known solution to alleviate this problem is to segment traffic over independent, disjoint, smaller collision domains, but at the expense of having to put in place extra devices to allow communication between the independent pieces thus created of a LAN. This may be a bridge or a switch. For example, an eight-port high-speed switch can support eight Ethernets, each running at a full 10 Mbps so as to be able to interconnect more users on what appear to them as a single LAN. Such a solution consisting in creating a more expensive and complicated network goes against the original objectives of the Ethernet LAN that wanted to be a very inexpensive solution, simple to administrate for local communications, over a campus or between the employees of a company dispersed over a group of buildings.

[0005] Another solution consists in implementing a passing-token mechanism of Token Ring LAN type so that the physical Ethernet network becomes collision free and therefore can be used at higher rates. In this mechanism, a logical ring is formed between connected stations and a token is circulated among those of the connected stations part of the logical ring. Then, transmitting from any one station part of the logical ring is only permitted while holding the token thereby, preventing collisions from happening. But, even though the above system prevents the collisions between stations from happening, it does not prevent a station from monopolizing the bandwidth while the other stations cannot transmit.

[0006] The above drawback can be solved by using a method wherein a credit of data bytes is allowed to each station and can be transmitted upon reception of the token by the station, such a credit being increased in proportion to the time spent since the preceding reception of the token. Unfortunately, the need of a station varies during the time. A station may need to use a lot of bandwidth at a certain time and less bandwidth later on. Typically, the needs for bandwidth are related to the applications running on the station. If a station is configured with a static credit of bytes which is too low for running an application, this one will experience some problems (jitter, lost packets . . . ). Conversely, if the station is configured with a high credit of bytes, the application will work correctly but the station will keep a high credit, even after the application has been ended, resulting in a part of bandwidth which is no more used and cannot be used by the other stations of the logical ring.

SUMMARY OF THE INVENTION

[0007] Accordingly, the main object of the invention is to provide a method of allocating bandwidth to any station belonging to a logical ring in an Ethernet network upon request of the station

[0008] The invention relates therefore to a method of bandwidth management enabling to insure a guaranteed bandwidth to each station of a transmission network comprising a plurality of stations forming a logical ring wherein a token frame is circulating from station to station, each station being allowed to transmit a credit (c) of data bytes upon reception of the token frame wherein the credit is increased in proportion to a variable TRTT standing for Token Round Trip Time which is the time taken for the token frame to circulate around the logical ring since the preceding reception of the token frame by the station. The improvement is that the credit is increased in proportion of a variable CIR standing for Committed Information Rate which is the guaranteed transmission rate that the station can use to transmit data wherein the value of CIR is determined by a class of bandwidth which has been previously selected by the station upon the preceding reception of the token frame by the station.

BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other objects, features and advantages of the invention will be better understood by reading the following more particular description of the invention in conjunction with the accompanying drawings wherein:

[0010]FIG. 1 is a schematic representation of some stations of an Ethernet network organized in a logical ring wherein the invention is implemented.

[0011]FIG. 2 illustrates the format of a token used in a logical ring according to FIG. 1.

[0012]FIG. 3 represents a flow chart of the steps of the method according to the invention used by each station when receiving the token frame.

[0013]FIG. 4 is a flow chart representing the specific steps of the method according to the invention used by each station for transmitting its data frames.

[0014]FIG. 5 is a flow chart representing the steps performed by the ring manager of the logical ring when receiving the token frame.

DETAILED DESCRIPTION OF THE INVENTION

[0015] According to FIG. 1, an Ethernet LAN includes several stations 10, 12 and 14 physically connected on the shared medium 16, exactly as with a regular collision Ethernet LAN, and organized so that they form a logical ring 18. This is achieved through the circulation of a token 20 which takes the form of a special Ethernet frame, forwarded 22 from one station to a next one, e.g., from station 10 to station 12.

[0016] It is worth noting here that not all stations connected on the same LAN segment need to participate into the collision-free ring 18 thus formed. The invention assumes that both types of protocols (collision and collision-free) may coexist at any given instant so that a station like 24 needs not to implement the new protocol while still being able to communicate with all the others connected on the shared transmission medium 16 however, using the regular collision protocol.

[0017] It must also be noted that one of the stations whithin the ring, for example the station 12, is the ring manager at a given time. Such a ring manager in charge of managing the logical ring is generally the first station which has been incorporated in the logical ring.

[0018] As represented in FIG. 2, the token frame includes three parts: the MAC header, the LLC header and the ring header.

[0019] MAC Header (Standard)

[0020] An Ethernet Destination MAC address 26, i.e. the MAC address of the next ring station.

[0021] An Ethernet Source MAC address 28, i.e. the MAC address of the station sending the token frame.

[0022] LLC Header (Standard)

[0023] A destination SAP (Service Access Point) 30 which, in the OSI model is due to identify the individual application on a host which is sending a packet. The destination SAP address is the standard way of actually defining the type of application in the following SNAP (SubNetwork Access Protocol) field.

[0024] A source SAP 32, i.e. the counterpart of the here above destination SAP.

[0025] A control field 34 which indicates this is a UI (Unnumbered Information) frame.

[0026] Ring Protocol (Specific of the Logical Ring)

[0027] A SNAP 5-byte header field introducing a new Ether-type, i.e. a collision-free Ethernet ring 36.

[0028] A 1-byte token field 38 to help managing the circulation of the token, however not mandatory, and which takes a default HEX value of 00.

[0029] A set of 8 2-byte fields corresponding to 4 groups composed of a first field containing a number N and a second field containing a number CIR. Each group corresponds to a class of bandwidth selected as described hereafter among 4 classes associated with 4 different bandwidth values: High, Medium, Normal and Low. Accordingly, each group is associated with indicia H, M, N and L corresponding to the class of bandwidth. Thus, the first group corresponding to the High class includes a first field 40 containing NH and a second field 42 containing CIRH, the second group corresponding to the Medium class includes a first field 44 containing NM and a second field 46 containing CIRM, the third group corresponding to the Normal class includes a first field 48 containing NN and a second field 50 containing CIRN and the fourth group includes a first field 52 containing NL and a second field 54 containing CIRL. Note that CIR stands for Committed Information Rate which is the guaranteed transmission rate in bits/second that the station can use to transmit data in a selected class of bandwidth as explained hereafter.

[0030] Referring to FIG. 3, at the initial time, the station initializes two variables C and T (step 60). C, which is the credit allocated to the station, is generally set to TB standing for Transmission Burst, which is the maximum of data bytes the station may transmit on the network upon reception of the token frame. T is set to the clock time.

[0031] After the initialization of the station parameters, the station waits for the token frame (step 62) and loops back as long as the token frame is not received (step 64). Upon receiving the token frame, the station reads the CIR value associated with the class of bandwidth selected previously by the station (step 66). Based upon the CIR value, the station transmits its data frames over the network (step 68).

[0032] Then, the station increments the number of stations N corresponding to a selected class High, Medium, Normal or Low (step 70) and sends the token frame to the next station of the logical ring (step 72). Note that a station may subscribe to any of the 4 classes at any time. Typically, when a station inserts to the logical ring, it will subscribe to the Low bandwidth class. Assuming an application requiring more bandwidth is started on the station, there will be a communication process between the operating system of the station and the microcode in charge of the CIR process that will trigger a request for more bandwidth. The station will then subscribe to another class (High, Medium or Normal) according to the application and the required bandwidth. When the application is stopped, the station subscribes generally to the Low class again to release bandwidth for the other stations.

[0033] Now, FIG. 4 illustrates the process achieved in the station to transmit data frames according to step 68 of FIG. 3. First, the station records the reception time TR of the token frame and sets a variable TRTT to TR−T (step 72), TRTT standing for Token Round Trip Time which is the time in seconds taken for the token frame to circulate around the logical ring since the preceding reception of the token frame by the station.

[0034] Then, the processing unit of the station computes (step 76) an intermediary variable as follows:

C ₁ =C+CIR.TRTT/8

[0035] which means that the credit of the station can be increased by a number of bytes which is proportional to the token round trip time of the token from the preceding reception by the station. At this step, it is checked whether the value of C₁ is greater than TB (step 78). If so, C is set to TB (step 80) since TB is the maximum of bytes which are allowed to be transmitted. If not, the value of C is set to C₁ (step 82).

[0036] Then, it is determined whether the station has at least one frame to be transmitted (step 84). In such a case, it is checked whether the size FS of the frame to be transmitted is less than or equal to the credit C (step 86). If so, the frame is transmitted (step 88) and the credit is decremented and set to the new value (step 90):

C=C−FS

[0037] Then, the process is looped back to the step of determination whether there is a frame to be transmitted (step 84). The process is repeated as long as there is a frame to be transmitted and if there is a credit sufficient to transmit the frame. When there is no frame to be transmitted or if the size of the frame exceeds the credit C, the process of frame transmission is linked to step 70 of FIG. 3.

[0038] As already mentioned, a specific station called the ring manager, is in charge of managing the logical ring and of computing the network utilization. For this, the ring manager is in charge of computing the CIR values for each of the four classes. These values are based upon the total bandwidth on the network (10 Mbps, 100 Mbps or 1 Gbps) and the number of stations into each of the four classes.

[0039] If TotBandwidth is the total bandwidth on the logical ring, the goal is to provide:

[0040] CIRN=KN.CIRL

[0041] CIRM=KM.CIRL

[0042] CIRH=KH.CIRL

[0043] the coefficients KN, KM and KH having predefined integer values such as:

[0044] KN=2

[0045] KM=3

[0046] KH=4

[0047] With such values, a station having selected the High class will be provided with a CIRH which is 4 times the value CIRL, a station having selected the Medium class will be provided with a CIRM being 3 times CIRL and a station having selected the Normal class will be provided with a CIRN being 2 times CIRL.

[0048] Accordingly, TotBandwidth=NH.CIRH+NM.CIRM+NN.CIRN+NL.CIRL

TotBandwidth=(K H .N H +K M .N M +K N .N N +N L).CIR L

[0049] therefore, ${C\quad I\quad R_{L}} = \frac{T\quad o\quad t\quad B\quad a\quad n\quad d\quad w\quad i\quad d\quad t\quad h}{{K_{H} \cdot N_{H}} + {K_{M} \cdot N_{M}} + {K_{N} \cdot N_{N}} + N_{L}}$

[0050] Which gives with KH=4, KM=3 and KN=2: ${C\quad I\quad R_{L}} = \frac{T\quad o\quad t\quad B\quad a\quad n\quad d\quad w\quad i\quad d\quad t\quad h}{{4N_{H}} + {3N_{M}} + {2N_{N}} + N_{L}}$

[0051] Note that the number of classes of bandwidth could be different from 4. Assuming there are n classes of bandwidth, the total of bandwidth is then: ${T\quad o\quad t\quad B\quad a\quad n\quad d\quad w\quad i\quad d\quad t\quad h} = {\sum\limits_{I = 1}^{n}{N\quad {i \cdot C}\quad I\quad R\quad i}}$

[0052] with the value of each CIR being defined as CIRi=Ki.CIRi, the value of CIRi is computed as follows: ${C\quad I\quad R_{1}} = \frac{T\quad o\quad t\quad B\quad a\quad n\quad d\quad w\quad i\quad d\quad t\quad h}{N_{1} + {\sum\limits_{i = 2}^{n}{K\quad i\quad N\quad i}}}$

[0053] The above formula ensures that a station in the High class will always get a higher CIR than a station in the Medium class, and so on . . . . On the other hand, when a station subscribes to the High class, the CIR for all the classes is decreasing. Ultimately, if all the stations subscribe to the High class, they will share an equal part of the total bandwidth.

[0054] The process achieved in the ring manager is illustrated in FIG. 5. As for any station, credit C is set to TB if there is a predefined maximum of bytes allowed to be transmitted and T is set to the clock time (step 92). After the initialization of the ring manager parameters, this one waits for the token frame (step 94) and loops back as long as the token frame is not received (step 96).

[0055] Then, the ring manager reads in the token frame, the number of stations in each class of bandwidth that is NH, NM, NN, and NL (step 98). Based upon the predefined values of KH, KM, KN and the above formula, the ring manager computes the CIR value for each class (step 100). After that, the values NH, NM, NN and NL corresponding to the number of stations recorded for each class in the token frame are reset to 0 (step 102).

[0056] Then, the ring manager being also a station of the ring, it achieves the station processing corresponding to steps 66, 68 and 70 of FIG. 3 as any other station. Thus, if the ring manager selects the High class of bandwidth, the value of NH in the token frame is incremented form 0 to 1.

[0057] After that, the ring manager sets the CIR values in the token frame to the values which have been previously computed (step 104). Finally, the ring manager sends the token frame to the next station on the logical ring before the process loops back to a new initialization of the ring manager parameters.

[0058] Note also that the value of CIR for the Low class and therefore the other values of CIR depend upon the total bandwidth used by the network and upon the predefined values of coefficients K.

[0059] It must be noted that the value of TB is configurable on each station. This parameter should allow a station that has not transmitted for a certain time to transmit several frames with only one token. But, the value of TB must not be too high to avoid generating a peak of traffic. A good value for TB is 3×1500 bytes (1500 bytes corresponds to the MTU on Ethernet) which allows the transmission of 3 large Ethernet frames. 

I claim:
 1. A method for dynamic bandwidth management in a logical ring network, the method comprising: circulating a token frame among a plurality of workstations; adjusting a transmission size credit (C) in response to a token round trip time (TRTT) variable; and adjusting the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class.
 2. The method of claim 1, further comprising assigning a value for the CIR variable based on a total network bandwidth, the bandwidth class of each of the plurality of workstations, and a predefined coefficient K associated with the bandwidth class.
 3. The method of claim 1, further comprising assigning (subscribing) a bandwidth class at least one of the plurality of workstations.
 4. The method of claim 1, wherein the token frame includes a set of bandwidth classes and a corresponding set of CIR variables.
 5. The method of claim 1, further comprising limiting a maximum value of the transmission size credit (C) to a predefined transmission burst (TB) parameter.
 6. The method of claim 1, further comprising transmitting a frame, or a series of frames, from one of the plurality of workstations as long as the transmission size credit (C) is equal to or greater than the frame size (FS) of the frame, or the series of frames, to be transmitted.
 7. A method for dynamic bandwidth management in a logical ring network, the method comprising: circulating a token frame among a plurality of workstations; adjusting a transmission size credit (C) in response to a token round trip time (TRTT) variable; adjusting the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class; assigning a value for the CIR variable based on a total network bandwidth, the bandwidth class of each of the plurality of workstations, and a predefined coefficient K associated with the bandwidth class; assigning (subscribing) a bandwidth class to at least one of the plurality of workstations; limiting a maximum value of the transmission size credit (C) to a predefined transmission burst (TB) parameter; and transmitting a frame, or a series of frames, from one of the plurality of workstations as long as the transmission size credit (C) is equal to or greater than the frame size (FS) of the frame, or the series of frames, to be transmitted.
 8. An apparatus for dynamic bandwidth management in a logical ring network, the apparatus comprising: a ring master module configured to circulate a token frame among a plurality of workstations; a TRTT adjustment module configured to adjust a transmission size credit (C) in response to a token round trip time (TRTT) variable; and a CIR adjustment module configured to adjust the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class.
 9. The apparatus of claim 8, further comprising a CIR assignment module configured to assign a value for the CIR variable based on a total network bandwidth, the bandwidth class of each of the plurality of workstations, and a predefined coefficient K associated with the bandwidth class.
 10. The apparatus of claim 8, further comprising a subscription module configured to assign (subscribe) a bandwidth class to at least one of the plurality of workstations.
 11. The apparatus of claim 8, wherein the token frame includes a set of bandwidth classes and a corresponding set of CIR variables.
 12. The apparatus of claim 8, further comprising a TB module configured to limit a maximum value of the transmission size credit (C) to a predefined transmission burst (TB) parameter.
 13. The apparatus of claim 8, further comprising a transmission module configured to transmit a frame, or a series of frames, from one of the plurality of workstations as long as the transmission size credit (C) is equal to or greater than the frame size (FS) of the frame, or the series of frames, to be transmitted.
 14. An apparatus for dynamic bandwidth management in a logical ring network, the apparatus comprising: a ring master module configured to circulate a token frame among a plurality of workstations; a TRTT adjustment module configured to adjust a transmission size credit (C) in response to a token round trip time (TRTT) variable; a CIR adjustment module configured to adjust the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class; a CIR assignment module configured to assign a value for the CIR variable based on a total network bandwidth, the bandwidth class of each of the plurality of workstations, and a predefined coefficient K associated with the bandwidth class; a subscription module configured to assign (subscribe) a bandwidth class to at least one of the plurality of workstations; a TB module configured to limit a maximum value of the transmission size credit (C) to a predefined transmission burst (TB) parameter; and a transmission module configured to transmit a frame, or a series of frames, from one of the plurality of workstations as long as the transmission size credit (C) is equal to or greater than the frame size (FS) of the frame, or the series of frames, to be transmitted.
 15. A system for dynamic bandwidth management on a logical ring network, the system comprising: a logical ring network; at least one workstation connected to the logical ring network and associated with a bandwidth class; a ring master station connected to the logical ring network and configured to circulate a token frame among the workstations connected to the logical ring network; a token frame including a set of bandwidth classes and a corresponding set of CIR variables; and a transmission size credit (C) associated with a a committed information rate (CIR) variable, a maximum value of the credit (C) limited to a predefined transmission burst (TB) parameter.
 16. A workstation for dynamic bandwidth management in a logical ring network, the workstation comprising: a subscription module configured to subscribe the workstation to a bandwidth class associated with a guaranteed information rate based on a committed information rate (CIR) variable corresponding to the suscribed bandwidth class; A token frame module configured to receive a token frame from a ring master station, the token frame including a value for the CIR variable corresponding to the subscribed bandwidth class of the workstation; and a transmission module configured to transmit a frame, or a series of frames, from the workstation as long as a transmission size credit (C) is equal to or greater than a frame size (FS) of the frame, or the series of frames, to be transmitted.
 17. A ring master station for dynamic bandwidth management in a logical ring network, the ring master station comprising: a ring master module configured to circulate a token frame among a plurality of workstations; a TRTT adjustment module configured to adjust a transmission size credit (C) in response to a token round trip time (TRTT) variable; a CIR adjustment module configured to adjust the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class; a CIR assignment module configured to assign a value for the CIR variable based on a total network bandwidth, the bandwidth class of each of the plurality of workstations, and a predefined coefficient K associated with the bandwidth class; and a TB module configured to limit a maximum value of the transmission size credit (C) to a predefined transmission burst (TB) parameter.
 18. An apparatus for dynamic bandwidth management in a logical ring network, the apparatus comprising: means for circulating a token frame among a plurality of workstations; means for adjusting a transmission size credit (C) in response to a token round trip time (TRTT) variable; means for adjusting the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class; means for assigning a value for the CIR variable based on a total network bandwidth, the bandwidth class of each of the plurality of workstations, and a predefined coefficient K associated with the bandwidth class; means for assigning (subscribing) a bandwidth class to at least one of the plurality of workstations; means for limiting a maximum value of the transmission size credit (C) to a predefined transmission burst (TB) parameter; and means for transmitting a frame, or a series of frames, from one of the plurality of workstations as long as the transmission size credit (C) is equal to or greater than the frame size (FS) of the frame, or the series of frames, to be transmitted.
 19. A computer program product for dynamic bandwidth management in a logical ring network, the computer program product comprising computer usable medium having a computer readable program code configured to conduct the steps of: circulating a token frame among a plurality of workstations; adjusting a transmission size credit (C) in response to a token round trip time (TRTT) variable; and adjusting the transmission size credit (C) in response to a committed information rate (CIR) variable associated with a bandwidth class. 